﻿Imports System.ComponentModel

Public Class LiveProgram
    Implements INotifyPropertyChanged

    Public Event PropertyChanged(ByVal sender As Object, ByVal e As System.ComponentModel.PropertyChangedEventArgs) Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged

    Public Sub FirePropertyChangedEvent(ByVal propertyName As String)
        RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
    End Sub

    'Private _isSubscribedCommunity As Boolean
    'Public Property IsSubscribedCommunity() As Boolean
    '    Get
    '        Return _isSubscribedCommunity
    '    End Get
    '    Set(ByVal value As Boolean)
    '        _isSubscribedCommunity = value
    '        FirePropertyChangedEvent("IsSubscribedCommunity")
    '    End Set
    'End Property

    'Private _isSelected As Boolean
    'Public Property IsSelected() As Boolean
    '    Get
    '        Return _isSelected
    '    End Get
    '    Set(ByVal value As Boolean)
    '        _isSelected = value
    '        FirePropertyChangedEvent("IsSelected")
    '    End Set
    'End Property

    Private _community As Community
    Public Property Community() As Community
        Get
            Return _community
        End Get
        Set(ByVal value As Community)
            _community = value
        End Set
    End Property

    Private _id As String
    Public Property Id() As String
        Get
            Return _id
        End Get
        Set(ByVal value As String)
            _id = value
            FirePropertyChangedEvent("Id")
        End Set
    End Property


    Private _title As String
    Public Property Title() As String
        Get
            Return _title
        End Get
        Set(ByVal value As String)
            _title = value
            FirePropertyChangedEvent("Title")
        End Set
    End Property

    Private _content As String
    Public Property Content() As String
        Get
            Return _content
        End Get
        Set(ByVal value As String)
            _content = value
            FirePropertyChangedEvent("Content")
        End Set
    End Property

    Private _uri As Uri
    Public Property Uri() As Uri
        Get
            Return _uri
        End Get
        Set(ByVal value As Uri)
            _uri = value
            FirePropertyChangedEvent("Uri")
        End Set
    End Property

    Private _startDateTime As DateTime
    Public Property StartDateTime() As DateTime
        Get
            Return _startDateTime
        End Get
        Set(ByVal value As DateTime)
            _startDateTime = value
            FirePropertyChangedEvent("StartDateTime")
        End Set
    End Property

    Private _visitorCount As Integer
    Public Property VisitorCount() As Integer
        Get
            Return _visitorCount
        End Get
        Set(ByVal value As Integer)
            _visitorCount = value
            FirePropertyChangedEvent("VisitorCount")
        End Set
    End Property

    Private _commentCount As Integer
    Public Property CommentCount() As Integer
        Get
            Return _commentCount
        End Get
        Set(ByVal value As Integer)
            _commentCount = value
            FirePropertyChangedEvent("CommentCount")
        End Set
    End Property

    Private _isMemberOnly As Boolean
    Public Property IsMemberOnly() As Boolean
        Get
            Return _isMemberOnly
        End Get
        Set(ByVal value As Boolean)
            _isMemberOnly = value
            FirePropertyChangedEvent("IsMemberOnly")
        End Set
    End Property
End Class
